package com.kfm.mapper;

import com.kfm.entity.Student;
import com.kfm.entity.StudentDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IStudentMapper {

    List<Student> selectAll();

    List<StudentDTO> selectAllWithTeacherNameAndClassName(@Param("start") int start, @Param("size") int size);

    Student selectById(String id);

    int save(Student student);

    int updateById(Student student);

    int count();

    int delete(String id);

}
